<template>
    <div class="com-select">
        <label>{{label}}</label>
        <el-select   v-model="selectValue"clearable placeholder="全部">
               <el-option class="f-fl" v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
               </el-option>
        </el-select>
    </div>
</template>
<script>
   export default{
       data(){
         return{
             selectValue:'',
             options:[],
         }
       },
       props:['label'],
       created(){
           this.$on('get-selected-list',data=>{
               this.options=data
           })
       },
       mounted(){

       },
   }
</script>
<style lang="scss" scoped>
 .com-select{
     height:60px;
     line-height:60px;
     display:flex;
      flex-shrink: inherit;
     label{
         margin:0 10px;
         font-size: 14px;
         color: #838C92;
     }
 }
</style>